package com.qg.controller;

import com.qg.dto.ReturnResult;
import com.qg.pojo.QgOrder;
import com.qg.service.LocalOrdersService;
import com.qg.utils.ReturnResultUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/orders")
public class QgOrdersController {
    @Resource
    private LocalOrdersService localOrdersService;

    public ReturnResult getOrderInfoByOrderNo(String orderNo)throws Exception{
        List<QgOrder> qgOrderList=localOrdersService.getOrderInfo(orderNo);
        return ReturnResultUtil.resultSuccess(qgOrderList);
    }

}
